<template>
  <img
    :src="adInfo.image"
    v-bind="$attrs"
    class="link2"
    @click="to(adInfo.url)"
  />
</template>

<style lang="css" >

.link2 {
  cursor: pointer;
}
</style>
<script lang="ts" >
export default {
  inheritAttrs: false,
  props: {
    adInfo: {
      type: Object,
    },
  },
  methods: {
    to(url) {
      window.location.href = url;
    },
  },
};
</script>